package com.erp.erp_servers.Customer2Contact;

import com.erp.erp_entitys.Customer2Contact.Customer2ContactEntity;
import com.erp.erp_entitys.Customer2Contact.Customer2ContactExample;
import com.erp.erp_entitys.Customer2Contact.Customer2ContactVoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ICustomerContactService
 * @Description TODO
 * @Author songjizhen
 * @Date 2020-06-29 20:04
 * @Version 1.0
 */
public interface ICustomer2ContactService {
    long countByExample(Customer2ContactExample example);

    int deleteByExample(Customer2ContactExample example);

    int deleteByExample2(Customer2ContactExample example,List<Customer2ContactEntity> list);
    int deleteByPrimaryKey(Integer id);

    int insert(Customer2ContactEntity record);

    int insertSelective(Customer2ContactEntity record);

    List<Customer2ContactEntity> selectByExample(Customer2ContactExample example);

    List<Customer2ContactVoEntity> query(String name, String email, String salesman);
    List<Customer2ContactVoEntity> query(String company);
    Customer2ContactEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Customer2ContactEntity record, @Param("example") Customer2ContactExample example);

    int updateByExample(@Param("record") Customer2ContactEntity record, @Param("example") Customer2ContactExample example);

    int updateByPrimaryKeySelective(Customer2ContactEntity record);

    int updateByPrimaryKey(Customer2ContactEntity record);
    List<Customer2ContactEntity> selectByDim(String dim);
}
